<template>
  <div class="cardItem" :style="{ height: height }">
    <div class="title">
      <img src="@/assets/common/标题背景.png" alt="" />
      <span class="title-wz">{{ title }}</span>
      <div class="title-qt">
        <slot name="title"></slot>
      </div>
      <slot name="title-right"></slot>
    </div>
    <div class="content">
      <slot></slot>
    </div>
  </div>
</template>
<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: '粮食生产'
  },
  height: {
    type: String,
    default: ''
  }
});
</script>
<style lang="scss" scoped>
.cardItem {
  position: relative;
}
.title {
  display: flex;
  font-family: 'YouSheBiaoTiHei';
  font-size: 26px;
  align-items: center;
  height: 44px;
  background: transparent;
  .title-wz {
    position: absolute;
    left: 66px;
    top: -2px;
    color: #fff;
  }
  .title-qt {
    position: absolute;
    right: 10px;
    top: -2px;
    color: #fff;
  }
}
.content {
  height: calc(100% - 44px);
  background: rgba(20, 89, 191, 0.149);
  // overflow-y: scroll;
  // overflow-x: hidden;
}

// ::-webkit-scrollbar-track-piece {
//   background: rgba(6, 41, 68, 0.6) !important;
// }

// ::-webkit-scrollbar {
//   width: 0px;
// }
</style>
